package com.ruoyi.project.syl_zjw.checkresin.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.syl_zjw.checkresin.domain.MoneyOrder1;
import com.ruoyi.project.syl_zjw.checkresin.domain.MoneyOrderFindCondition;
import com.ruoyi.project.syl_zjw.checkresin.service.MoneyOrderService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 检查管理：检查结果录入
 * @author:author
 * @date: 10:27 2021/7/18
 */
@RestController
@RequestMapping("/syl_zjw/checkresin")
public class MoneyOrderController extends BaseController {
    @Autowired
    private MoneyOrderService moneyOrderService;
    @PreAuthorize("@ss.hasPermi('syl_zjw:checkresin:query2')")
    @GetMapping("/query2")
    public AjaxResult  findMoneyOrderList(MoneyOrderFindCondition moneyOrderFindCondition){
        List<MoneyOrder1> moneyOrderList = moneyOrderService.findMoneyOrderList(moneyOrderFindCondition);
        System.out.println("参数："+moneyOrderFindCondition);
        System.out.println(moneyOrderList);
        return AjaxResult.success(moneyOrderList);
    }
}
